<?php
/**
 * Classe FORM da tabela BOTOES DE CADASTRO
 * 
 * @author			Mário R. Castro
 * @copyright		Voitech Sistema
 * @package			SEMAS
 * @subpackage		semas.application.controller
 * @version			1.0
*/
class App_Form_BotaoCadastroModal extends Voitech_Form
{
	public function __construct($options=array())
	{
		parent::__construct($options);
				
        $this->setAttribs(array('name'=>'frmCadastroBotaoModal', 'id'=>'frmCadastroBotaoModal', 'class'=>'form last-child'));
        
        $buttonCancelar = new Zend_Form_Element_Button('Cancelar');
		$buttonCancelar->setAttribs( array('class'=> 'first-child last-child','style'=>'float:left;margin: 5px', 'id' => 'btnCancelarModal' ) )
		           ->removeDecorator( 'label' );
		$this->addElement( $buttonCancelar );		

		$buttonCdst = new Zend_Form_Element_Button('Salvar');
		$buttonCdst->setAttribs( array('class'=> 'first-child last-child','style'=>'float:right; margin: 5px', 'id' => 'btnSalvarModal' ) )
		           ->setDecorators( $this->_decoratorDefault )
		           ->removeDecorator( 'label' );
                $this->addElement( $buttonCdst );
                
                
		
		$this->addDisplayGroup(array('Cancelar','Salvar'),'Cadastro',array('class'=>'grey-bg first-child last-child fieldset-with-legend fieldset-with-legend-first-child'));
	}
}